﻿using Nest;
using System;
using System.Collections.Generic;
using System.Text;

namespace ZYHand.Entity
{
    [ElasticsearchType(IdProperty = "orderID", RelationName = "Order")]
    public class Order
    {
        [Text(Analyzer = "ik_max_word")]
        public string orderID { get; set; }

        [Text(Analyzer = "ik_max_word")]
        public string merchantType { get; set; }

        [Text(Analyzer = "ik_max_word")]
        public string customerID { get; set; }

        [Text(Analyzer = "ik_max_word")]
        public string customerName { get; set; }

        [Text(Analyzer = "ik_max_word")]
        public string customerPhone { get; set; }

        [Text(Analyzer = "ik_max_word")]
        public string customerProvince { get; set; }

        [Text(Analyzer = "ik_max_word")]
        public string customerCity { get; set; }

        [Text(Analyzer = "ik_max_word")]
        public string customerRegion { get; set; }

        [Text(Analyzer = "ik_max_word")]
        public string customerAddress { get; set; }

        [Text(Analyzer = "ik_max_word")]
        public string emergencyPhone { get; set; }

        [Text(Analyzer = "ik_max_word")]
        public string organizationID { get; set; }
    }
}
